#pragma once
#include <dinput.h>

class DXinput
{
protected:
	LPDIRECTINPUT8 _dinput;
	LPDIRECTINPUTDEVICE8 _dikeyboard;
	char keys[256];
	HWND _hWnd;
	HINSTANCE _hInstance;

public:
	DXinput(HINSTANCE hInstance,HWND hWnd);
	~DXinput(void);

	int InitDirectInput();
	int InitKeyboard();

	void PollKeyboard();
	int isKeyPress(int KeyCode);
};

